package singleton;

/**
 * 懒汉单例
 *
 * @author: 任福祥
 * * @create: 2024-02-22 16:09
 */
public class Singleton {
    private static Singleton instance;
    private Singleton (){
    }
    public static Singleton getInstance() {
        if (instance == null) {
            instance = new Singleton();
        }
        return instance;
    }
}